package com.sys.basics.config.constant;

public class SocketIoNameSpaceConstant {

    public static enum MessageCode {
        // success
        SUCCESS(200),
        // error
        ERROR(0);

        Integer code;

        MessageCode(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }

    public static enum SocketIoNameSpace {
        // web
        WEB("web","/web"),
        // device
        DEVICE("device", "/device");

        String alias;
        String nameSpace;

        SocketIoNameSpace(String alias, String nameSpace) {
            this.alias = alias;
            this.nameSpace = nameSpace;
        }

        public String getAlias() {
            return alias;
        }
        public String getNameSpace() {
            return nameSpace;
        }
    }

}
